package com.tfjybj.itoo.exam.provider.service;

import com.dmsdbj.itoo.tool.base.service.BaseServicePlus;
import com.dmsdbj.itoo.tool.business.ItooResult;
import com.github.pagehelper.PageInfo;
import com.tfjybj.itoo.exam.entity.ExamNoticeEntity;
import com.tfjybj.itoo.exam.model.ExamNoticeModel;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * ExamNoticeService接口
 * examNotice表
 *
 * @author 贾建清
 * @version 2.0.0
 * @since 2.0.0 2018-12-26 20:56:50
 */
public interface ExamNoticeService extends BaseServicePlus<ExamNoticeEntity> {
    ItooResult importTemplate(MultipartFile multipartFile, HttpServletRequest request, HttpServletResponse response);

    boolean exportErrorList(String errorListId, HttpServletResponse response);

    /**
     * 根据课程查询该课程内的人员
     *
     * @return
     */
    PageInfo<ExamNoticeModel> queryNoticeByCourse(String course, Integer pageNo, Integer pageSize);

    /**
     * 高级搜索
     *
     * @param examNoticeModel
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageInfo<ExamNoticeModel> queryNoticeByInfo(Integer pageNo, Integer pageSize, ExamNoticeModel examNoticeModel);


    boolean exportExamByLikeCourse(String course, HttpServletResponse response);

    boolean downTemplate(HttpServletResponse response);

    List<ExamNoticeModel> queryExamNoticeByStudentNo(String studentNo);
}
